package com.hn658.base.message.notification.notify.dao.redis;

import com.hn658.base.message.common.enums.NotifyType;
import com.hn658.base.message.notification.notify.entity.TalkerEO;

/**
 * 用户聊天会话对象缓存
 *
 */
public interface INotifyRedisDAO {
	/**
	 * 保存用户当前聊天对象信息
	 * @param appId
	 * @param id
	 * @param type
	 */
	public void saveTalker(String appId,String uid,TalkerEO talker);
	
	/**
	 * 获取用户当前聊天对象信息
	 * @param appId
	 * @param uid
	 * @return
	 */
	public TalkerEO getTalker(String appId,String uid);
	
	/**
	 * 设置用户选定会话未读消息数量
	 * @param appId
	 * @param uid
	 * @param notifyId
	 * @param count
	 */
	public void setNotiReadCount(String appId,String uid,String notifyId,int count);
	
	/**
	 * 获取用户选定会话未读消息数量
	 * @param appId
	 * @param uid
	 * @param notifyId
	 * @return
	 */
	public int getNotiReadCount(String appId,String uid,String notifyId);
}
